<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>案例添加</title>
    <link rel="shortcut icon" href="/images/index/logo.ico">
    <style>
        .refresh, .search {
            display: inline-block;
            float: right;
        }

        .form-group {
            margin-bottom: 50px;
        }

        .search {
            margin-right: 40%;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="refresh">
    <button class="btn btn-info search" title="刷新" data-url="/themeClass/admin/addThemeClass"><span
            class="glyphicon glyphicon-refresh"></span></button>
</div>
<div class="">
    <ol class="breadcrumb">
        <li><a href="javascript:;">主题案例管理</a></li>
        <li><a data-url="/themeClass/admin/list">案例管理</a></li>
        <li class="active">添加案例</li>
    </ol>
</div>
<form class="form-horizontal" method="post" action="/themeClass/admin/submitThemeClass">

    <div class="form-group" style="margin-top: 30px;">
        <label class="col-sm-2 control-label">分类名称</label>
        <div class="col-sm-4">
            <input type="text" class="form-control" name="name" placeholder="案例名称" maxlength="5">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">分类介绍</label>
        <div class="col-sm-4">
            <input type="text" name="content" class="form-control" placeholder="案例介绍" maxlength="20">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="button" class="btn btn-default submit">确定</button>
        </div>
    </div>
</form>
<script src="/sources/dist/js/jquery.form.js"></script>
<script src="/sources/dist/js/submitForm.js"></script>
<script>
    $(document).ready(function () {
        $('.breadcrumb a').click(function () {
            if ($(this).attr('data-url')) {
                $('.content_right').load($(this).attr('data-url'));
            }
        });


    });
</script>
</body>
</html>